/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.principles.ADP.fixADP.fixADP.impl;

import za.ac.cput.principles.ADP.fixADP.fixADP.IfixADP;
import za.ac.cput.principles.ADP.fixADP.fixADP.impl2.Animal;

/**
 *
 * @author Dwayne
 */
public class Herbivore extends Animal implements IfixADP
{
    Animal anObj2 = new Animal();
    
    @Override
    public String eat() 
    {
        return "plants";
    }

    @Override
    public boolean kill() 
    {
        String result2 = anObj2.buck();
        if("omnivore".equals(result2))
        {
            return true;
        }
        else 
            return false;
    }
}
